﻿namespace Common
{
    public class ConstParameters
    {
        public const string MainCompanyName = "武汉谦通";
         

        /// <summary>
        /// WCF communication  Port 85
        /// </summary>
        public const int WcfPort = 9599;

        /// <summary>
        /// AcceptServer TcpListen Port
        /// </summary>
        public const int AstPort = 8599;

        public const int TcpListene = 8889;


        public const double CorrectLat = 0.19127;
        public const double CorrectLng = 0.16056;




        /// <summary>
        /// Message Head Length(+First and Last identification+Check bit) 
        /// </summary>
        public const int MhLenth = 19;

        /// <summary>
        /// Message body Start Index
        /// </summary>
        public const int MBodySatrtIndex = 17;


        /// <summary>
        /// Max TaxiInfo In One Message (Must less than 23)
        /// </summary>
        public const int MaxTaxiInfoInOneMessage = 10;



        /// <summary>
        /// How long Time to Clear  out of date  Taxi  Cache. Unit : second
        /// </summary>
        public const int ClearTaxiCacheTime = 10 * 60; //second

 
        public const int DeviceTypeTK102 = 1;

        public const int DeviceTypeTK106 = 2;
         
 
        #region Command  Code
     
 
        public const ushort CmdPhoneUserRegister = 0x0030;
        public const ushort CmdPhoneUserRegisterReply = 0x8030;

        public const ushort CmdPhoneUserGetDeviceGps = 0x0031;
        public const ushort CmdPhoneUserGetDeviceGpsReply = 0x8031;

        public const ushort CmdPhoneUserGetGpsHistory = 0x0032;
        public const ushort CmdPhoneUserGetGpsHistoryReply = 0x8032;
       
 
        #endregion


    }
}
